package com.liujun.spring4.demo.aop.iocset.beanConfig.configuration;

import com.liujun.spring4.demo.aop.iocset.beanConfig.configuration.dao.LogDao;
import com.liujun.spring4.demo.aop.iocset.beanConfig.configuration.dao.LogDaoImpl;
import com.liujun.spring4.demo.aop.iocset.beanConfig.configuration.dao.UserDao;
import com.liujun.spring4.demo.aop.iocset.beanConfig.configuration.dao.UserdaoImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

/**
 * @author liujun
 * @version 1.0
 * @date 2018-08-20 18:04:00
 */
@Configurable
public class DaoConfig {

  @Bean
  public UserDao userDao() {
    return new UserdaoImpl();
  }

  @Bean
  public LogDao logDao() {
    return new LogDaoImpl();
  }
}
